"""
输入年份和月份，计算这个月有多少天
"""

year = int(input("请输入年份："))

month = int(input("请输入月份："))

if (month == 1 or month == 3 or month == 5 or month == 7 or month == 8 or month == 10 or month == 12):
    print ("本月31天")
elif (month == 4 or month == 6 or month == 9 or month == 11):
    print ("本月30天")
elif (month == 2 and ((year % 4 == 0 and year % 100 != 0) or year % 400 == 0)):
    print ("本月29天")
else:
    print ("本月28天")